package com.cloud.easyexcel.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 中信资金明细对象 citic_amount_record_excel
 *
 * @author citicbank
 * @date 2025-02-17
 */
@Data
public class CiticAmountRecordExcel {
    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "门店ID", index = 0)
    private Long shopId;

    /**
     * 用户编号
     */
    @ExcelProperty(value = "用户编号", index = 1)
    private String userId;

    /**
     * 银行商户编号
     */
    @ExcelProperty(value = "银行商户编号", index = 2)
    private String mchntId;


    @ExcelProperty(value = "对方账号", index = 3)
    private String payAccno;

    /**
     * 对方账户名
     */
    @ExcelProperty(value = "对方账户名", index = 4)
    private String payAccname;

    /**
     * 银行账号
     */

    @ExcelProperty(value = "银行账号", index = 5)
    private String account;

    /**
     * 银行账号名称
     */

    @ExcelProperty(value = "银行账号名称", index = 6)
    private String accname;

    /**
     * 请求流水号
     */

    @ExcelProperty(value = "请求流水号", index = 7)
    private String reqSsn;

    /**
     * 银行侧流水号
     */

    @ExcelProperty(value = "银行侧流水号", index = 8)
    private String respSsn;

    /**
     * 交易时间
     */
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "交易时间", index = 9)
    private Date transDate;

    /**
     * 交易金额
     */
    @NumberFormat("#.##")
    @ExcelProperty(value = "交易金额", index = 10)
    private BigDecimal transAmt;

    /**
     * 交易类型：对应枚举CITICBankTransTypeEnum
     */
    @ExcelProperty(value = "交易类型", index = 11)
    private String transTp;

    /**
     * 当前余额
     */
    @NumberFormat("#.##")
    @ExcelProperty(value = "当前余额", index = 12)
    private BigDecimal accountBalance;

    /**
     * 借贷方向：C-贷，D-借
     */
    @ExcelProperty(value = "借贷方向：C-贷，D-借", index = 13)
    private String cdFlag;

    /**
     * 摘要
     */
    @ExcelProperty(value = "摘要", index = 14)
    private String digest;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注", index = 15)
    private String remark;
}
